package com.wjy.game.service;

import com.wjy.game.enums.Operate;
import com.wjy.game.message.ReqMessageData;
import com.wjy.game.message.Request;
import com.wjy.game.message.ResMessageData;
import com.wjy.game.message.Response;

/**
 * @author wjy
 * @date 2025/5/22 10:18
 * @description 消息处理
 */
public interface MessageHandleService<Req extends ReqMessageData,Res extends ResMessageData> {

    boolean support(Operate operate);

    Response<Res> handle(Request<Req> request);
}
